namespace PharmacyPharnet.Core
{
	/// <summary>
	/// Define the base class for the views of each module, for the class inherit from this interface 
	/// will be shown and managed by the ModuleManager of the framework
	/// </summary>
	/// <author></author>
	/// <history>
    /// 2011.01.26 - ThangTran: added Xml-doc, refactored code, added EventIsPrevented.
	/// </history>
    public interface IView
    {
        /// <summary>
        /// Gets or sets feature name of this View.
        /// </summary>
        string FeatureTypeName { get; set; }

	    /// <summary>
	    /// Gets a value that indicates whether this View is closed or not.
	    /// </summary>
        bool IsClosed { get; set; }

        /// <summary>
        /// Gets a value that indicates wheter the event is prevented or not.
        /// </summary>
        bool EventIsPrevented { get; }

        /// <summary>
        /// Applies current logging in user's permission to all menu bar on this View.
        /// </summary>
	    void ApplyUserPermissionOnToolBar();
    }
}
